package org.example.domain.query.report;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.domain.query.PageQuery;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@EqualsAndHashCode(callSuper=false)
@Data
@ApiModel(description = "入库汇总报表查询条件")
public class StorageSummaryQuery extends PageQuery {
    @ApiModelProperty("出入库类型")
    private String type;
    
    @ApiModelProperty("客户ID")
    private Long organId;
    
    @ApiModelProperty("商品信息")
    private String name;
    
    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:", timezone = "GMT+8")
    private Date createTime;
    
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;
    
    @ApiModelProperty("仓库ID")
    private Long depotId;
    
}
